//
//  SEExamineRecordImageCell.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/14.
//

import UIKit

struct SEExamineRecordImageCellModel {
    var imgUrlStr: String = ""
}

class SEExamineRecordImageCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .white
        contentView.backgroundColor = .white
    }
    
    func updateWithViewModel(_ viewModel: SEExamineRecordImageCellModel) {
        valueImageView.kf.setImage(urlString: viewModel.imgUrlStr)
    }
    
    @IBOutlet private weak var valueImageView: UIImageView! {
        didSet {
            valueImageView.setLayerCorners(rect: valueImageView.bounds, radius: 4)
            valueImageView.backgroundColor = Asset.textGrayLightest.color
            valueImageView.addImageBrownTap()
        }
    }
    
}
